package com.huatai.user.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @program: ht-system
 * @description: 岗位实体
 * @author: songxiude
 * @create: 2023-02-20 09:48
 **/
@Data
@TableName("sys_post")
@ApiModel(value = "岗位实体",description = "岗位实体")
public class Post {
	@TableId
	@ApiModelProperty("主键")
	private Long id;

	@ApiModelProperty(value = "岗位名称",required = true)
	@NotBlank(message = "岗位名称不能为空")
	private String postName;

	@ApiModelProperty("岗位编号")
	private String postCode;

	@ApiModelProperty("排序")
	private Integer sort;

	@ApiModelProperty("状态0正常1禁用")
	private Integer status;

	@ApiModelProperty("创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@ApiModelProperty("更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;

	@ApiModelProperty("岗位备注信息")
	private String remark;
}
